import { createRouter, createWebHistory } from 'vue-router'

import Login from '../views/login.vue'
import Layout from '../views/layout.vue'
import StudentManage from '../views/student/manage.vue'
import StudentAnalysis from '../views/student/analysis.vue'


const routes = [
  { path: '/login', component: Login },
  {
    path: '/', component: Layout, redirect: '/student/manage',
    children: [
      { path: '/student/manage', component: StudentManage },
      { path: '/student/analysis', component: StudentAnalysis },
    ]
  },
]



const router = createRouter({
  history: createWebHistory(),
  routes: routes
})

export default router
